/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AbstractFactory;

/**
 * Permet de parser un chemin windows
 * @author David
 */
public class ParseFileNameWindows implements FileNameParser{
    
    String s;
    public ParseFileNameWindows(String s){
      this.s =s ;  
    }
    
    @Override
    public void parse(){
        int index = s.lastIndexOf("\\" );
        String r = s.substring( index+1);
        System.out.println(r);
    }
}
